"""hospitaloa URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from correspondence import views


urlpatterns = [
    path('home.html', views.home.as_view()),
    path('inbox.html', views.inbox.as_view()),          # 1
    path('sent.html', views.sent.as_view()),
    path('drafts.html', views.drafts.as_view()),            # 1
    path('deleted.html', views.deleted.as_view()),          # 1
    path('send-message', views.SendMessageView.as_view()),      # 1
    path('inbox_detail', views.InboxDetialView.as_view()),          # 1
    path('', views.index, name='index'),
    path('<str:room_name>/', views.room, name='room'),
    path('query_records', views.query_records.as_view()),
    path('message_reminder', views.message_reminder.as_view()),
    path('message_notice', views.message_notice.as_view()),
    path('MarkRead', views.MarkRead.as_view()),
    path('reply_email', views.reply_email.as_view()),           # 回邮件
    path('create_group', views.CreateGroup.as_view()),           # 创建聊天群组
]
